No sequence Codechef Starters 72 (Rated till 5-Stars)

This post is all about the solution of the No sequence Codechef Starters 72 (Rated till 5-Stars) problem solution.


No sequence Codechef Starters 72 (Rated till 5-Stars) problem solution

Codechef 




Problem Statement:

Cook considers a trio of friends to be a perfect group if the age of one person equals the sum of the ages of the other two.

If the ages of three people in a group are A, B, A,B, and CC, determine whether the group is perfect.

Format of Input :

The number of cases will be indicated by a single integer TT in the first line of input.
Each test case's first and only line includes 2 space-separated integers NN and MM — the number of apples and oranges, respectively.


Format of the Output :

For every test case, output YES if the group is perfect and NO or else on a new line.

Each character can be printed in either uppercase or lowercase. The strings YES, yes, Yes, and yES, for example, are all considered identical.


Also Check this out:-

Apples and oranges Codechef Starters 72 (Rated till 5-Stars) problem solution, Click Here
N Triplets Codechef Starters 72 (Rated till 5-Stars) Problem Solution, Click Here
Indivisible Codechef Starters 72 (Rated till 5-Stars) problem solution, Click Here
No sequence Codechef Starters 72 (Rated till 5-Stars) problem solution, Click Here
Sum it No sequence Codechef Starters 72 (Rated till 5-Stars) problem solution, Click Here
Good Sequence Codechef Starters 72 (Rated till 5-Stars) problem solution, Click Here
New Upcoming OnePlus 11 Specifications

New Upcoming OnePlus 11 Specifications, Click Here

Solution of the Problem: Click Here